package cn.tianyigps.tianyigpsapiv2.utils;

import org.codehaus.jackson.map.ObjectMapper;

import java.io.IOException;

/**
 * @Author: LiuHao
 * @Descirption:
 * @Date: 2019/4/17_13:30
 */
public class JacksonUtil {

    private static ObjectMapper OM = new ObjectMapper();

    public static String toJsonString(Object object) throws IOException {
        return OM.writeValueAsString(object);
    }
}
